﻿@model List<GameStepAzure.Models.Inventario>
@{
    ViewBag.Title = "ConsultarProductos";
    Layout = "~/Areas/Admin/Views/Shared/_MasterAdmin.cshtml";
}
<link href="../../../../Content/GameStore/Admin/demo_table_ui.css" rel="stylesheet"
    type="text/css" />
<link href="../../../../Content/GameStore/Admin/jquery-ui-1.9.0.custom.css" rel="stylesheet"
    type="text/css" />
<script type="text/javascript">


    $(document).ready(function () {
        $('#productos').dataTable({
            "bJQueryUI": true,
            "sPaginationType": "full_numbers"
        });
    });
		
		

</script>
<style>
    .buttonDelete
    {
        background: url("../../Images/GameStore/delete.png") no-repeat transparent;
    }
</style>
<div style="padding-top: 5%">
    <table id="productos" class="display">
        <thead>
            <th>
                Id
            </th>
            <th>
                Nombre
            </th>
            <th>
                Cantidad
            </th>
            <th>
                Genero
            </th>
            <th>
                Tipo
            </th>
            <th>
                Precio
            </th>
            <th>
                Consola
            </th>
            <th>
                &nbsp;
            </th>
            <th>
                &nbsp;
            </th>
        </thead>
        <tbody>
            @foreach (GameStepAzure.Models.Inventario inven in Model)
            {
    
    
                <tr>
                    <td>@inven.Producto.Id
                    </td>
                    <td>@inven.Producto.Nombre
                    </td>
                    <td>@inven.Cantidad
                    </td>
                    <td>@inven.Producto.Genero
                    </td>
                    <td>@inven.Producto.Tipo
                    </td>
                    <td>
                        $@inven.Producto.Precio
                    </td>
                    <td>@inven.Producto.Consola
                    </td>
                    <td>
                        <button onclick="location.href='/Admin/Administracion/EliminarProducto/@inven.Id'">
                            <img src="../../../../Images/GameStore/delete.png" alt="delete" /></button>
                    </td>
                    <td>
                        <button onclick="location.href='/Admin/Administracion/EditarProducto/@inven.Id'" style="padding-top:18%">
                            <img src="../../../../Images/GameStore/editar.png" />
                    </td>
                </tr>

            }
        </tbody>
    </table>
</div>
